﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageSERIX.Master" AutoEventWireup="true"
    CodeBehind="ProgramasManut.aspx.cs" Inherits="SERIX.ProgramasManut" Title="Programas" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
        <table width="97%" border="0" cellspacing="0" cellpadding="2" align="center">
            <tr>
                <td width="100%" class="secao_titulo">
                    <span style="color: black">
                        <asp:Label ID="lblTitulo" runat="server" Text="Programas" TabIndex="-1"></asp:Label>
                        <hr class="linhahorizontal" style="width: 740px" />
                </td>
            </tr>
            <tr>
                <td align="left" class="erro">
                    <asp:Label ID="lblErro" runat="server" CssClass="erro" Text="*Erro: " Visible="False"
                        Width="740px" TabIndex="-1"></asp:Label>
                </td>
            </tr>
        </table>
        <table width="97%" border="0" cellspacing="0" cellpadding="2" align="center">
            <tr>
                <td align="left" class="erro">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width: 100%" __designer:mapid="49">
                        <tr __designer:mapid="50">
                            <td class="grid_titulo_right" style="color: black;" width="25%" __designer:mapid="51">
                                Programa&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td class="grid_celula" style="height: 30px" __designer:mapid="52">
                                <asp:TextBox ID="txtNomePrograma" runat="server" Columns="44" MaxLength="50"></asp:TextBox>
                                <span style="color: black" __designer:mapid="54" class="grid_celula">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNomePrograma"
                                        CssClass="erro" ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1"
                                        Width="174px"></asp:RequiredFieldValidator>
                                </span>
                            </td>
                        </tr>
                        <tr __designer:mapid="50">
                            <td class="grid_titulo_right" style="visibility: hidden;" width="25%" 
                                __designer:mapid="51">
                                Tipo de Programa&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td class="grid_celula" style="visibility: hidden;" __designer:mapid="52">
                                <span style="color: black" __designer:mapid="54" class="grid_celula">
                                    <asp:DropDownList ID="ddlTipoPrograma" runat="server" TabIndex="3" Width="250px"
                                        DataSourceID="SqlTiposProgramas" DataTextField="DSC_TPO_PROG" DataValueField="IDT_TPO_PROG"
                                        OnPreRender="ddlTipoPrograma_PreRender">
                                        <asp:ListItem />
                                    </asp:DropDownList>
                                    <asp:SqlDataSource ID="SqlTiposProgramas" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                                        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                                    SelectCommand="SELECT &quot;IDT_TPO_PROG&quot;, &quot;DSC_TPO_PROG&quot; FROM &quot;SRX_TIPOS_PROGRAMAS&quot; ORDER BY  &quot;DSC_TPO_PROG&quot;">
                                    </asp:SqlDataSource>
                                    <asp:RequiredFieldValidator ID="rfvIDT_TPO_PROG" runat="server" Enabled="false" ControlToValidate="ddlTipoPrograma"
                                        CssClass="erro" ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1"
                                        Width="174px"></asp:RequiredFieldValidator>
                                </span>
                            </td>
                        </tr>
                        <tr __designer:mapid="50">
                            <td class="grid_titulo_right" style="visibility: hidden;" width="25%" 
                                __designer:mapid="51">
                                Data de Início&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td class="grid_celula" style="visibility: hidden;" __designer:mapid="52">
                                <asp:TextBox ID="txtDataInicio" Width="69" runat="server" Columns="12" MaxLength="10"></asp:TextBox>
                                <cc1:MaskedEditExtender ID="tbData_MaskedEditExtender" runat="server" CultureAMPMPlaceholder=""
                CultureCurrencySymbolPlaceholder="" CultureDateFormat="pt-br" CultureDatePlaceholder="pt-br"
                CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
                Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtDataInicio" CultureName="pt-br">
            </cc1:MaskedEditExtender>
                                <cc1:CalendarExtender ID="txtDataInicio_CalendarExtender" runat="server" Enabled="True"
                                    FirstDayOfWeek="Monday" Format="dd/MM/yyyy" TargetControlID="txtDataInicio">
                                </cc1:CalendarExtender>
                                <span style="color: black" __designer:mapid="54" class="grid_celula">
                                    <asp:RequiredFieldValidator ID="rfvDataInicio" runat="server" Enabled="false" ControlToValidate="txtDataInicio"
                                        CssClass="erro" ErrorMessage="*Campo obrigatório!" Style="position: static" TabIndex="-1"
                                        Width="174px"></asp:RequiredFieldValidator>
                                </span>
                            </td>
                        </tr>
                        <tr __designer:mapid="50">
                            <td class="grid_titulo_right" style="visibility: hidden;" width="25%" 
                                __designer:mapid="51">
                                Data de Término&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td class="grid_celula" style="visibility: hidden;" __designer:mapid="52">
                                <asp:TextBox ID="txtDataTermino" runat="server" Width="69" Columns="12" MaxLength="10"></asp:TextBox>
                                <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" CultureAMPMPlaceholder=""
                CultureCurrencySymbolPlaceholder="" CultureDateFormat="pt-br" CultureDatePlaceholder="pt-br"
                CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
                Enabled="True" Mask="99/99/9999" MaskType="Date" TargetControlID="txtDataTermino" CultureName="pt-br">
            </cc1:MaskedEditExtender>
                                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True" FirstDayOfWeek="Monday"
                                    Format="dd/MM/yyyy" TargetControlID="txtDataTermino">
                                </cc1:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" class="erro" style="visibility: hidden">
                                &nbsp;
                            </td>
                        </tr>
                        <tr __designer:mapid="56">
                            <td colspan="2" style="height: 30px; color: black;" width="25%" __designer:mapid="57"
                                align="center">
                                <asp:Button ID="Ok_Button" runat="server" Font-Bold="True" Text="Ok" Width="80px"
                                    OnClick="Ok_Button_Click" />
                                &nbsp;<asp:Button ID="Cancelar_Button" runat="server" Font-Bold="True" OnClick="Cancelar_Button_Click"
                                    Text="Cancelar" Width="80px" CausesValidation="False" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
